﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Milestone.ComponentModel;
using Topics.Radical.Windows.Presentation.ComponentModel;

namespace Milestone.Presentation.Tasks
{
	class CreateNewCompany : AbstractUserTask
	{
		readonly IViewResolver viewResolver;

		public CreateNewCompany( IViewResolver viewResolver )
		{
			this.viewResolver = viewResolver;
		}

		public override string Category
		{
			get { return "Administration"; }
		}

		public override string DisplayName
		{
			get { return "Create new company."; }
		}


		public override string Description
		{
			get { return "Starts the wizard to create a new company."; }
		}

		public override void Execute()
		{
			this.viewResolver.GetView<Presentation.CompanyEditorView>().Show();
		}
	}
}
